#ifndef DATAVOCABULARY_H
#define DATAVOCABULARY_H
#include <QObject>
#include <QSqlRecord>
#include <iostream>
class Vocabulary
{

public:


    int id() const;
    void setId(int newId);
    const std::string &vocabularyName() const;
    void setVocabularyName(const std::string &newVocabularyName);
    int vocabularySize() const;
    void setVocabularySize(int newVocabularySize);

    void parseRecord(const QSqlRecord&);

private:
    int m_id;          //0 到65535,对应数据库 smallint unsigned
    std::string m_vocabularyName;         //词汇名称
    int m_vocabularySize;
};

#endif // DATAVOCABULARY_H
